<?php
namespace app\admin\common\controller;

use think\Controller;
use think\facade\Session;

class Common extends Controller
{
    /**
     * 初始化操作
     */
    public function initialize()
    {
        // 判断是否登录
        if (!Session::has('admininfo')) $this->redirect('admin/Login/index' . '?not_logged_in');
    }
}